import service from "@/utils/request";

export function loginService(params = {}) {
  return service({
    url: "/teacher/login",
    method: "post",
    data: params,
  });
}

export function logoutService() {
  return service({
    url: "/teacher/logout",
    method: "delete",
  });
}

export function getTeacherInfoService() {
  return service({
    url: "/teacher/info",
    method: "get",
  });
}

export function getTeacherDetailService(teacherId) {
  return service({
    url: "/teacher/detail",
    method: "get",
    params: { teacherId },
  });
}


export function editTeacherService(params = {}) {
  return service({
    url: "/teacher/edit",
    method: "put",
    data: params,
  });
}

export function updateHeadImageService(params = {}) {
  return service({
    url: "/teacher/head-image/update",
    method: "put",
    data: params,
  });
}

export function teacherSubmitService(params = {}) {
  return service({
    url: "/teacher/question/rabbit/submit",
    method: "post",
    data: params,
  });
}